import { useEventBus } from "@vueuse/core";

import { BaseSearchRecordService } from "@/service/BaseSearchRecordService";

import EventBusEnum from "@/enumeration/EventBusEnum";

import highlight from "highlight.js/lib/core";
import highlightJson from "highlight.js/lib/languages/json";

// 重新注入

export const baseSearchRecordService = new BaseSearchRecordService();

// 事件
export const useIndexManageEvent = useEventBus<string>(EventBusEnum.INDEX_MANAGE);

// 代码高亮
highlight.registerLanguage("json", highlightJson);
export { highlight };

